package com.hgkx.controller;

import com.hgkx.domain.Visitors;
import com.hgkx.service.IVisitorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiangwen
 */
@RestController("/visitors")
public class VisitorsController {

    @Autowired
    private IVisitorsService visitorsService;

    @PostMapping("/saveVisitors")
    public void saveVisitors(@RequestBody Visitors visitors) {
        visitorsService.saveVisitors(visitors);
    }

}
